<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="donnees.Produit"%>
<%@ page import="java.util.Collection"%>

<jsp:include page="header.jsp" />


<div id="content">
	<a href="?cmd=panier"><img id="imgpanier"
		src="static/images/cart.jpg" /> </a>
	<div id="colSingle">
		
			<%
				for (Produit prod : ((Collection<Produit>) request
						.getAttribute("produits"))) {
			%>
			<div class="product">
				<h2><%=prod.getNom() %></h2>
				<a id="single_image"
					href="static/images/products/<%=prod.getUrlImage()%>"><img
					src="static/images/products/<%=prod.getUrlImage()%>"
					alt="product x" width="140" height="110" class="img1" /> </a>
				<p class="price"><%=prod.getPrix()%> €</p>
				<span class="addpanier"><a href="?cmd=produits&ajout=<%= prod.getIdproduit() %>">Ajouter au panier</a> </span>
				<p>
					<b>Description</b>
				</p>
				<p><%= prod.getDescription() %></p>
			</div>

			<%
				}
			%>			
		</div>
		<div style="clear: both;">&nbsp;</div>
	</div>

	<jsp:include page="footer.jsp" />